#include <bits/stdc++.h>
#define ll long long
using namespace std;

inline ll read(){
    ll x=0;char c=getchar();
    while (!isdigit(c))c=getchar();
    while (isdigit(c))x=(x<<1)+(x<<3)+(c^48),c=getchar();
    return x;
}

ll a[100005];

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin.tie(0);cout.tie(0);
    ios::sync_with_stdio(false);
    ll n;
    cin >> n;
    multiset<ll> ms;
    for (ll i=1;i<=n;i++){
        cin >> a[i];
        ms.insert(a[i]);
    }
    sort(a+1,a+1+n);
    ll ans=n;
    for (ll i=1;i<=n;i++){
        auto v=ms.upper_bound(a[i]);
        if (v==ms.end()){
            continue;
        }
        //cout<<i<<":"<<*v<<"\n";
        ans--;
        ms.erase(ms.find(*v));
    }
    cout<< ans;
    return 0;
}
/*
10
136 136 136 2417 136 136 2417 136 136 136
*/
